home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / Apple II / Programming & Utilities / Apple IIgs APW Intro Prog Src / HP.CC / HP.H.txt < prev    next >
Encoding:
Text File  |  1987-09-05  |  3.7 KB  |  121 lines

  1. #include <types.h>
  2. #include <quickdraw.h>
  3. #include <font.h>
  4.  
  5. #define SCREENMODE 0x80                        /* 640 mode */
  6. #define MAXSCAN    160
  7. #define QDAuxTool 18                           /* Auxiliary Quickdraw  */
  8. #define PManager  19                           /* Print Manager Tool Number */
  9. #define MinVer     0                           /* Minimun Version for them */
  10. #define VolNotFound 0x45
  11.  
  12. #define NUM_MENUS      5                       /* Number of menus */
  13. #define NUM_WINDOWS    15                      /* Maximum number of windows */
  14.  
  15. /* Menus related defines */
  16. #define AppleMenuID     1
  17. #define FileMenuID      2
  18. #define EditMenuID      3
  19. #define ModeMenuID      4
  20. #define WindowsMenuID   5
  21. #define FontsMenuID     6
  22.  
  23. #define UndoID          250                /* These next 6 are standard and */
  24. #define CutID           251                /* required for DA support under */
  25. #define CopyID          252                /* TaskMaster.                   */
  26. #define PasteID         253
  27. #define ClearID         254
  28. #define CloseWID        255
  29.  
  30. #define AboutID         256             /* These are our own responsibility */
  31. #define QuitID          257
  32. #define OpenWID         258
  33. #define SaveID          259
  34. #define ChooseID        260
  35. #define SetUpID         261
  36. #define PrintID         262
  37. #define ModeID          263
  38. #define ShowFontID      264
  39. #define MonoID          265
  40.  
  41.  
  42. /* some font and window handling stuff */
  43.  
  44. #define MaxNameSize 29
  45.  
  46.  
  47. #define NumLines 13
  48.  
  49. typedef struct DataRec {
  50.                    char **PicHand;
  51.                    char Blank;
  52.                    char Str[30];
  53.                    char MMStuff[6];
  54.                    short Flag;
  55.                    char Extra;
  56.                    } DataRec, *DataRecPtr, **DataRecHandle;
  57.  
  58.  
  59. /* same thing as DataRec but for FONT windows */
  60.  
  61. typedef struct FontDataRec {
  62.                    FontID FID;         /* This is Pic handle in DataRec */
  63.                    char Blank;
  64.                    char Str[30];
  65.                    char MMStuff[6];
  66.                    Byte Flag;
  67.                    char Extra;
  68.                    } FDataRec, *FDataRecPtr, **FDataRecHandle;   
  69.  
  70. typedef int PackedData[320];
  71.  
  72. typedef struct DirEntry
  73.                        {
  74.                         int PackedBytes;
  75.                         word Mode;
  76.                         } DirEntry;
  77.  
  78. typedef struct MainBlk {
  79.                    long SizeOfBlock;
  80.                    char IDStr[5];
  81.                    word MasterMode;
  82.                    int PixelsPerScanLine;
  83.                    int NumPallets;
  84.                    int  PalletArray[16][16];
  85.                    int NumScanLines;
  86.                    DirEntry ScanLineDir[200];
  87.                    PackedData PackedScanLines[200];
  88.                    } MainBlk,*MainBlkPtr,**MainBlkHandle;
  89.  
  90. /* all the files for this program include HP.H, but not all do the same with
  91.    DIALOG.H that is why:
  92. */
  93.  
  94. #ifndef __dialog__
  95.  
  96. typedef struct ItemTemplate  {
  97.       Word     itemID;     /* ItemTemplate -  */
  98.       Rect     itemRect;     /* ItemTemplate -  */
  99.       Word     itemType;     /* ItemTemplate -  */
  100.       Pointer  itemDescr;     /* ItemTemplate -  */
  101.       Word     itemValue;     /* ItemTemplate -  */
  102.       Word     itemFlag;     /* ItemTemplate -  */
  103.       Pointer  itemColor;     /* pointer to appropreate ctl color table */
  104.       } ItemTemplate,  *ItemTempPtr,  **ItemTempHndl ;
  105. #endif
  106.  
  107. /* Here we define the dialog templates used for Standard File Get and Put
  108.    calls. 
  109. */
  110.  
  111. #ifndef GetPutListLength
  112. #define  GetPutListLength  0xF   /* Set to 15 which is the max */
  113. #endif
  114.  
  115. typedef struct GetPutTemplate  {
  116.       Rect     gpBoundsRect;    
  117.       Boolean     gpVisible;     
  118.       LongWord     gpRefCon;     
  119.       ItemTempPtr     gpItemList[GetPutListLength];     
  120.       } GetPutTemplate,  *GetPutTempPtr ;
  121.